<template>
  <div class="app">
    <h2>我是App组件（祖先组件）</h2>
    <Child></Child>
  </div>
</template>

<script>
  import Child from './components/Child.vue';

  export default {
    name: 'App',
    components: {
      Child: Child,
    }
  }
</script>
<style lang="css">
  .app {
    background-color: tan;
    padding: 10px;
  }
</style>